<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<!-- <meta http-equiv="refresh" content="2" /> -->
		<title>个人信息中心</title>
		<!--[if lt IE 9]>
		<script src="<%=basePath%>js/ie9.js"></script>
	<![endif]-->
	<link rel="icon" href="<%=basePath %>images/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<%=basePath %>images/favicon.ico" type="image/x-icon" />
		<script src="<%=basePath%>js/jquery-1.4.2.min.js"></script>
		<script type="text/javascript" src="<%=basePath%>js/jquery.cookie.js"></script>
		<script type="text/javascript" src="<%=basePath%>js/cookie.save.js"></script>
		<script src="<%=basePath%>js/jquery.validate.min.js"></script>
		<script src="<%=basePath%>js/birthday.js"></script>
		<script src="<%=basePath%>js/modify.js"></script>
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>css/signup.css" />
	</head>
	<body>
		<div id="header">
			<div class="header-content">
				<h1 class="logo">
					<a href="<%=basePath%>jsp/index.jsp">photobucket</a>
				</h1>
				<a href="<%=basePath%>jsp/upload.jsp" class="nav-upload">上传</a>
				<form action="pictureAction!findByKeyWord" class="search"
					method="post">
					<div class="search-group">
						<input type="text" name="keyWord" class="field style"
							value="用户名、图片类别" />
						<input type="hidden" name="page" value="1" />
						<input type="submit" title="Submit" value="" class="submit" />
					</div>
				</form>
				<div class="login">
					<img src="<%=basePath%>${sessionScope.loginUser.photoSticker}"
						width="30" height="30" />
					<a href="#">${sessionScope.loginUser.userName }</a>
				</div>
			</div>
		</div>
		<!-- header -->
		<form action="userAction!modify" class="signup" method="post"
			id="modifyForm">
			<div class="content">
				<h2>
					修改用户信息
					<img src="./images/green.png">
				</h2>
				<div class="input-groups">
					<div class="input-group2">
						<label for="username">
							<img src="<%=basePath%>${user.photoSticker}" width="120px"
								height="120px">
						</label>
						${user.userName}
						<a href="<%=basePath%>jsp/modifysticker.jsp">修改头像</a>
					</div>
					<div class="input-group2">
						<label for="username">
							性别：
						</label>
						<em> <c:if test="${user.gender == '男'}">
								<input type="radio" name="user.gender" value="男"
									checked="checked" />&nbsp;男 
								&nbsp;&nbsp;&nbsp;&nbsp; 
								<input type="radio" name="user.gender" value="女" />&nbsp;女 
							</c:if> <c:if test="${user.gender == '女'}">
								<input type="radio" name="user.gender" value="男" />&nbsp;男 
								&nbsp;&nbsp;&nbsp;&nbsp; 
								<input type="radio" name="user.gender" value="女"
									checked="checked" />&nbsp;女 
							</c:if> </em>
					</div>
					<div class="input-group2">
						<label for="username">
							注册时间：
						</label>
						<fmt:formatDate value="${user.createDate}"
							pattern="yyyy-MM-dd HH:mm:ss" />
					</div>
					<div class="input-group2">
						<label for="username">
							电子邮箱：
						</label>
						<input type="text" name="user.email" id="user.email"
							value="${user.email}" />
					</div>
					<div class="input-group2">
						<label for="username">
							出生日期：
						</label>
						<em> <select name="year" id="year1"
								onchange="TUpdateCal(year1.value,month1.value);">
							</select>&nbsp;年 <select name="month" id="month1"
								onchange="TUpdateCal(year1.value,month1.value);">
							</select>&nbsp;月 <select name="day" id="day1">
							</select>&nbsp;日 </em>
					</div>
					<div class="input-group2">
						<label for="username">
							个人主页：
						</label>
						<input type="text" name="user.homePage" id="user.homePage"
							value="${user.homePage}" />
					</div>
					<div class="input-group2">
						<label for="username">
							验证码：
						</label>
						<input type="text" name="captcha" id="captcha" maxlength="6" />
					</div>
					<div class="input-group2">
						<label for="username">
							&nbsp;
						</label>
						<img src="<%=basePath%>patchca.png" id="codeimg" title="点击刷新验证码"
							style="cursor: pointer;">
					</div>

					<input type="submit" value="修改" id="submit-signup" />
				</div>
			</div>
		</form>
		<div class="footer">
			<div class="footer-content">
				<p>
					Copyright 2012 Sharelife. All rights reserved. |
					<a href="#">Privacy policy</a> |
					<a href="#">Terms of use</a> |
					<a href="#">Site map</a>
				</p>
			</div>
		</div>
	</body>
</html>